<template>
  <div class="container">
    <div class="flex-body">
      <!--        <ul>-->
      <!--          <li>-->
      <!--            <div style="height: 60%;margin: auto 0px">-->
      <!--              <p>ss</p>-->
      <!--&lt;!&ndash;              <el-row>&ndash;&gt;-->
      <!--&lt;!&ndash;                <el-col :span="24">&ndash;&gt;-->
      <!--&lt;!&ndash;                  <img src="https://i8.mifile.cn/b2c-mimall-media/41f858550f42eb1770b97faf219ae215.png" style="height: 25px;width: 25px">&ndash;&gt;-->
      <!--&lt;!&ndash;                </el-col>&ndash;&gt;-->
      <!--&lt;!&ndash;              </el-row>&ndash;&gt;-->
      <!--&lt;!&ndash;              <span>个人中心</span>&ndash;&gt;-->
      <!--            </div>-->
      <!--          </li>-->
      <!--          <li>-->
      <!--            <el-row>-->
      <!--              <el-col :span="24">-->
      <!--                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/95fbf0081a06eec7be4d35e277faeca0.png" style="height: 25px;width: 25px">-->
      <!--              </el-col>-->
      <!--            </el-row>-->
      <!--            <span>个人中心</span>-->
      <!--          </li>-->
      <!--          <li>-->
      <!--            <el-row>-->
      <!--              <el-col :span="24">-->
      <!--                <img src="https://i8.mifile.cn/b2c-mimall-media/5e9f2b1b0da09ac3b3961378284ef2d4.png" style="height: 25px;width: 25px">-->
      <!--              </el-col>-->
      <!--            </el-row>-->
      <!--            <span>个人中心</span>-->
      <!--          </li>-->
      <!--          <li>-->
      <!--            <el-row>-->
      <!--              <el-col :span="24">-->
      <!--                <img src="https://i8.mifile.cn/b2c-mimall-media/692a6c3b0a93a24f74a29c0f9d68ec71.png" style="height: 25px;width: 25px">-->
      <!--              </el-col>-->
      <!--            </el-row>-->
      <!--            <span>个人中心</span>-->

      <!--          </li>-->
      <!--        </ul>-->
      <div class="flex-card" v-for="(item,index) in righrData" @click="cardClick(index)">
        <div style="height: 40px;padding: 25%">
          <img :src="item.img" style="height: 30px;width: 30px">
          <p>{{item.name}}</p>
        </div>

      </div>


    </div>

  </div>
</template>

<script>
  export default {
    name: "RightFlex",
    data() {
      return {
        righrData: [
          {name: '个人中心', img: 'https://i8.mifile.cn/b2c-mimall-media/55cad219421bee03a801775e7309b920.png'},
          {name: '售后服务', img: 'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/12eb0965ab33dc8e05870911b90f3f13.png'},
          {name: '人工客服', img: 'https://i8.mifile.cn/b2c-mimall-media/4f036ae4d45002b2a6fb6756cedebf02.png'},
          {name: '购物车', img: 'https://i8.mifile.cn/b2c-mimall-media/55cad219421bee03a801775e7309b920.png'},
        ]
      }
    },
    methods: {
      cardClick(res) {

        switch (res) {
          case 0: {
            this.$router.push('/personal')
            break
          }
          case 1: {
            break
          }
          case 2: {
            break
          }
          case 3: {
            this.$router.push("/cart")
            break
          }

        }

      }

    }

  }
</script>

<style scoped>

  .flex-body {
    position: fixed;
    right: 0px;
    bottom: 70px;
    display: flex;
    height: 360px;
    flex-direction: column;
    width: 100px;
    background: #ffffff;
  }

  .flex-body ul {
    height: 100%;
    display: flex;
    text-align: center;
    flex-direction: column;
  }

  .flex-body li {
    height: 90px;
    line-height: 40px;
    border: 1px solid #e7e4e4;
    justify-content: center;
    align-items: center;

  }

  .flex-card {
    flex: 1;
    border: 1px solid #f5f5f5;
    align-items: center;
    justify-content: center;
    height: 60px;
    text-align: center;
    cursor: pointer;

  }
  .flex-card:hover{
    color: #ff6700;

  }
</style>
